package com.yuyou.tas.util.enums.admin;

public class AuthOrganizationEnums {
	

	/**
	 * 0：试用期1：合约期 2：终止
	 *
	 */
	public enum status{		
		trying(0),contract(1),end(2);
		status(int value){
			this.value=value;
		}		
		private int value;
		public int getValue() {
			return value;
		}			
	}
	
	/**
	 * 
	 * 0：合作机构1：个人
	 *
	 */
	public enum type{
		person(1),institution(0);
		type(int value){
			this.value=value;
		}		
		private int value;
		public int getValue() {
			return value;
		}			
	}


	public enum statusStr {
		trying("试用期",0),contract("合约期",1),end("终止",2),overdue("已结束",3);
		// 成员变量
		private String name;
		private int index;

		private statusStr(String name, int index) {
			this.name = name;
			this.index = index;
		}

		public static String getName(int index) {
			for (statusStr c : statusStr.values()) {
				if (c.getIndex() == index) {
					return c.name;
				}
			}
			return null;
		}

		public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
		public int getIndex() {
			return index;
		}
		public void setIndex(int index) {
			this.index = index;
		}
	}

}
